Newspeak, Doubleplussimple Minilang for Goodthinkful Static Analysis of C
نویسندگان
چکیده
Static analysis is a difficult task, partly because programming languages are extremely rich, and have intricate semantics with architecture-dependent aspects. We have therefore chosen to design Newspeak, a kernel language dedicated to the purpose of static analysis. And, we have implemented a front-end, C2Newspeak, that translates C programs into Newspeak. Thus, any static analysis algorithm that uses this front-end, is preserved from the aforementioned sources of complexity. This paper fully presents the syntax and precise semantics of Newspeak. The design rationale of the language is explained and the advantages for static analysis highlighted. The various details of the translation from C to Newspeak are shown on examples. C2Newspeak was made to compile embedded C programs of a few million lines of code. It is, as well as a few other utilities, provided as free software under the LGPL.
منابع مشابه
Modules as Objects in Newspeak
We describe support for modularity in Newspeak, a programming language descended from Smalltalk [33] and Self [68]. Like Self, all computation — even an object’s own access to its internal structure — is performed by invoking methods on objects. However, like Smalltalk, Newspeak is class-based. Classes can be nested arbitrarily, as in Beta [44]. Since all names denote method invocations, all cl...
متن کاملThe Newspeak Programming Platform
Cadence is developing a high productivity development platform based around the Newspeak programming language. Newspeak supports advanced capabilities not found in mainstream languages, such as mixins, virtual classes and class hierarchy inheritance. Newspeak is based on an object capability model which provides a solid foundation for security. The language has a powerful module system designed...
متن کاملExecutable Grammars in Newspeak
We describe the design and implementation of a parser combinator library in Newspeak, a new language in the Smalltalk family. Parsers written using our library are remarkably similar to BNF; they are almost entirely free of solutionspace (i.e., programming language) artifacts. Our system allows the grammar to be specified as a separate class or mixin, independent of tools that rely upon it such...
متن کاملCommentary Government Detailing
‘Newspeak,’’ as Orwellian cognoscenti know, is the official language of Oceania—the land ruled by Big Brother. Newspeak was designed ‘‘not to extend but to diminish the range of thought.’’ Its goal was to ‘‘make all other modes of thought impossible.’’ All of which brings us from the nightmare fantasy of 1984 Newspeak to the health care debate of 2012, the concept of ‘‘academic detailing,’’ and...
متن کاملComparative Review of the Performance Based Design of Building Structures Using Static Non-Linear Analysis, Part B: R/C Frames
The objective of this review to be submitted in two independent parts, for steel frames and for RC frames, is to compare their structural performance with respect to the proposed N2-method, and so also of the consequent convenience of using pushover methodology for the seismic analysis of these structures. A preliminary investigation is presented on a pushover analysis used for the seismic perf...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2008